package com.hui.model.car;

import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 购物车数量的查询参数
 */

@ApiModel(
        value = "CartNumParam (购物车数量的查询参数)",
        description = "购物车数量的查询参数"
)
@Getter
@Setter
public class CartNumParam implements Serializable {
    @Min(value = 1, message = "数量不在合法范围内")
    @Max(value = 9999, message = "数量不在合法范围内")
    //(value = "购物车数量")
    private Integer number;

    @NotNull(message = "参数有误")
    //(value = "购物车ID")
    private Long id;
}
